import request from '@/utils/request'

export function getRechargeRecords(params) {
  return request({
    url: 'api/rechargeRecords',
    method: 'get',
    params
  })
}

export function getMemberRechargeRecords(memberId, params) {
  return request({
    url: `api/rechargeRecords/member/${memberId}`,
    method: 'get',
    params
  })
}

export function downloadRechargeRecords(params) {
  return request({
    url: 'api/rechargeRecords/download',
    method: 'get',
    params,
    responseType: 'blob'
  })
}

export default { getRechargeRecords, getMemberRechargeRecords, downloadRechargeRecords } 